package com.itic.ht.cms.examrecord.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.ht.cms.examrecord.persistence.dao.ExamScheduleDao;
import com.itic.ht.cms.examrecord.persistence.model.ExamSchedule;
import com.itic.ht.cms.examrecord.persistence.model.ExamScheduleExample;

@Service
@Transactional
public class ExamScheduleService {

	@Autowired
	private ExamScheduleDao mapper;
	public List<ExamSchedule> getScheduleByAccount(ExamScheduleExample example) {
		return mapper.selectByExample(example);
	}
	public void add(ExamSchedule schedule) {
		mapper.insert(schedule);
	}
	public void edit(ExamSchedule schedule) {
		mapper.updateByPrimaryKey(schedule);
	}
	
}
